// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css
import locale from 'element-ui/lib/locale/lang/zh-CN'

import App from './App'
import router from './router'
import store from './store'
import '@/icons' // icon

import '@/permission'

import useComponents from '@/components/UserDefinedComponents/index.js'

import BaiduMap from 'vue-baidu-map'
Vue.use(useComponents)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'PDdwGG79BB8B1V2PIS595erhofQMWMq3'
})

Vue.use(ElementUI, {locale})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
